<template>
  {{form.name}}
  {{form.password}}
  {{ass}}
  <button @click="sendto">点击</button>

</template>

<script>
import axios from 'axios'
import {onMounted, reactive ,ref} from 'vue'
export default {
    setup(){
        let form=reactive({"name":"123","password":"sdf"})
        let ass = ref('onetwo')
        const sendto = () =>{
            form.name = 
            ass = "quklbs"
            
        }
        const lsit = () =>{
            axios({url:'login',method:'get'}).then(res=>{
                console.log(res)
                 })

        }
        onMounted(()=>{
            lsit()
            
        })

        return{
            form,
            ass,
            sendto,
        
            

        }

        
    }

}
</script>

<style>

</style>